package com.example.test.model;

import ma.glasnost.orika.impl.DefaultMapperFactory;

import java.util.Date;

public class Main {
    public static void main(String[] args) {
        UserVo userVo = UserVo.builder()
                .name("张三")
                .age("18")
                .birth(new Date())
                .build();

        DefaultMapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();

        UserDto userDto = mapperFactory.getMapperFacade().map(userVo, UserDto.class);
        System.out.println("userDto = " + userDto);

    }
}
